<?xml version="1.0" encoding="utf-8" ?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:param name="year"/>
<xsl:param name="month"/>
  
<xsl:template match="/">  
  
  <itext>
    
    <paragraph leading="18.0" font="STSong-Light" align="Default">
      <xsl:value-of select="$year"/>年<xsl:value-of select="$month"/>月工资表
    </paragraph>

    <!--<style>
      name="zh"
      isDefault="false"
      fontName="宋体"
      fontSize="18"
      isBold="true"
      pdfFontName="STSong-Light"
      pdfEncoding="UniGB-UCS2-H"
    </style>-->    	
    
    <newline/>
    <newline/>
    
    <paragraph leading="18.0" font="unknown" align="Default">
      <xsl:for-each select="salaries/salary">
        <table columns="7" width="80%" align="Center" cellpadding="5.0" cellspacing="5.0">
          
          <row>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                姓名
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                基本工资
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                岗位工资
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                特殊津贴
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                工龄工资
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                职务工资
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                加班费
              </paragraph>
            </cell>
          </row>
          
          <row>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                <!--姓名-->
                <xsl:value-of select="name"/>
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                <!--基本工资-->
                <xsl:value-of select="basicSalary"/>
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                <!--岗位工资--> 
                <xsl:value-of select="jobSalary"/>
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                <!--特殊津贴-->
                <xsl:value-of select="special"/>
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                <!--工龄工资-->
                <xsl:value-of select="old"/>
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                <!--职务工资-->
                <xsl:value-of select="postSalary"/>
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                <!--加班费-->
                <xsl:value-of select="overTime"/>
              </paragraph>
            </cell>
          </row>

        </table>
        
        <table columns="6" width="80%" align="Center" cellpadding="5.0" cellspacing="5.0">
          
          <row>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                应付小计
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                所得税
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                社保
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                住房公积金
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                其他
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                实发金额
              </paragraph>
            </cell>
          </row>
          
          <row>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                <!--应付小计-->
                <xsl:value-of select="total"/>
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                <!--所得税-->
                <xsl:value-of select="tex"/>
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                <!--社保-->
                <xsl:value-of select="insurance"/>
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                <!--住房公积金-->
                <xsl:value-of select="house"/>
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                <!--其他-->
                <xsl:value-of select="others"/>
              </paragraph>
            </cell>
            <cell borderwidth="0.5" left="true" right="true" top="true" bottom="true" horizontalalign="Default" verticalalign="Default">
              <paragraph leading="18.0" font="unknown" align="Default">
                <!--实发金额-->
                <xsl:value-of select="factSalary"/>
              </paragraph>
            </cell>            
          </row>
          
        </table>
        
      </xsl:for-each>
    </paragraph>

  </itext>  
</xsl:template>  
</xsl:stylesheet>

